export class LouYuan {//后端返回的json格式属性名是camelCase格式，这里定义属性名按照camelCase格式
    louYuanID: string | null | undefined;
    mingCheng: string | null | undefined;
    fangWuShuLiang: number | null | undefined;
    dongShu: number | null | undefined;
    jianZhuMianJi: number | null | undefined;
    jianChengShiJian: Date | null | undefined;
    sheQuID: string | null | undefined;
    diZhi: string | null | undefined;

    constructor(data: any) {
        this.louYuanID = data.louYuanID;
        this.mingCheng = data.mingCheng;
        this.fangWuShuLiang = data.fangWuShuLiang;
        this.dongShu = data.dongShu;
        this.jianZhuMianJi = data.jianZhuMianJi;
        this.jianChengShiJian = new Date(data.jianChengShiJian); // 使用内置的Date.parse()方法，将时间字符串转换为Date对象;
        this.sheQuID = data.sheQuID;
        this.diZhi = data.diZhi;
    }
}